package com.sskj.base.socket;

import com.sskj.base.Constant;

public class MarketWebSocket extends WebSocket {

    private static MarketWebSocket instance;

    public static MarketWebSocket getInstance(String message) {
        if (instance == null) {
            instance = new MarketWebSocket(Constant.MARKET_WS, "market", message);
        } else {
            instance.sendMessage(message);
        }
        return instance;
    }

    public MarketWebSocket(String url, String tag, String message) {
        super(url, tag, message);
    }

    public MarketWebSocket(String url, String tag, String message, boolean isSSL) {
        super(url, tag, message, isSSL);
    }
}
